import Layout from '@/layout'

const wechatRouter = {
  path: '/wxchat',
  component: Layout,
  redirect: '/wxchat/wxuser',
  name: 'Wxchat',
  meta: {
    title: '用户信息管理',
  },
  children: [
    {
      path: 'wxuser',
      name: 'WxUser',
      meta: { title: '客户信息' },
      component: () => import('@/views/wechat/wxuser'),
    },
    {
      path: 'menu',
      name: 'Menu',
      meta: { title: '微信菜单' },
      component: () => import('@/views/wechat/wxmenu'),
    },
    {
      path: 'recharge_record',
      name: 'RechargeRecord',
      meta: { title: '用户充值记录' },
      component: () => import('@/views/wechat/recharge-record'),
    },
    {
      path: 'unified_order',
      name: 'UnifiedOrder',
      meta: { title: '微信统一下单结果' },
      component: () => import('@/views/wechat/unified-order-result'),
    },
    {
      path: 'pay_result',
      name: 'PayResult',
      meta: { title: '微信支付结果' },
      component: () => import('@/views/wechat/pay-result'),
    },
    {
      path: 'gift_money_record',
      name: 'GiftMoneyRecord',
      meta: { title: '客户赠金记录' },
      component: () => import('@/views/wechat/gift-money-record'),
    },
    {
      path: 'gift_consume_record',
      name: 'GiftConsumeRecord',
      meta: { title: '用户赠金消费记录' },
      component: () => import('@/views/wechat/gift-consume-record')
    },
    {
      path: 'recharge',
      name: 'Recharge',
      meta: { title: '充值金额维护' },
      component: () => import('@/views/wechat/recharge-list')
    },
    {
      path: 'account_his',
      name: 'AccountHistory',
      meta: { title: '客户账户历史信息' },
      component: () => import('@/views/wechat/user-account-his')
    },
    {
      path: 'user_collect',
      name: 'UserCollection',
      meta: { title: '用户收藏' },
      component: () => import('@/views/wechat/user-collection')
    },
  ]
}

export default wechatRouter